\chapter{Propagation Models}
\section{Propagation Models Supported}
Mininet-WiFi supports the following propagation models: \texttt{Friis Propagation Loss Model}, \texttt{Log-Distance Propagation Loss Model}, \texttt{Log-Normal Shadowing Propagation Loss Model}, \texttt{International Telecommunication Union (ITU) Propagation Loss Model} and \texttt{Two-Ray Ground Propagation Loss Model}.

\section{How to add specific Propagation Model?}
You have to call the method \texttt{net.propagationModel()} like in \textit{examples/propagationModel.py}. You might have to consider some parameters for specifics propagation models (not mandatory), for example:

\subsubsection{Friis Propagation Loss Model}
\begin{minted}{bash}
net.propagationModel("friisPropagationLossModel", sL = $int) 
sL = system loss
\end{minted}

\subsubsection{Log-Distance Propagation Loss Model}
\begin{minted}[breaklines]{bash}
net.propagationModel("logDistancePropagationLossModel", sL = $int, exp = $int) 
sL = system loss
exp = exponent
\end{minted}

\subsubsection{Log-Normal Shadowing Propagation Loss Model}
\begin{minted}[breaklines]{bash}
net.propagationModel("logNormalShadowingPropagationLossModel", sL = $int, exp = $int, gRandom = $int) 
sL = system loss
exp = exponent
gRandom = gaussian random variable
\end{minted}

\subsubsection{International Telecommunication Union (ITU) Propagation Loss Model}
\begin{minted}{bash}
net.propagationModel("ITUPropagationLossModel", lF = $int, nFloors = $int, pL = $int)  
lF = floor penetration loss factor
nFloors = number of floors
pL = power loss coefficient
\end{minted}

\subsubsection{Two-Ray Ground Propagation Loss Model}
\textit{Attention: It does not give a good result for a short distance}
\begin{minted}{bash}
net.propagationModel("twoRayGroundPropagationLossModel")	
\end{minted}